﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CADDemo2025
{
    public static class WCAD
    {
        //当前开的文档
        public static Document Doc { get { return Application.DocumentManager.MdiActiveDocument; } }
        //当前数据库
        public static Database Db { get { return Doc.Database; } }
        //当前编辑器
        public static Editor Ed { get { return Doc.Editor; } }
    }
}
